<?php /* Smarty version 2.6.18, created on 2010-03-24 08:38:46
         compiled from organismlist.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'organismlist.tpl', 13, false),array('modifier', 'explode', 'organismlist.tpl', 46, false),array('function', 'cycle', 'organismlist.tpl', 34, false),)), $this); ?>
<div id="blanket" style="display:none;"></div>
<div id="supplier" style="position:absolute;background-color:#fff;width:400px;z-index: 1002;display:none;">
</div>
<script>	
	var dd = new ekimo_drag_region("content","supplier");
</script>
<?php if ($this->_tpl_vars['organisms']): ?>
<div class="white"></div>
<div class="blue" id="pagination">
	<table border=0 width="100%">
		<tr>
			<td align="center">
			<?php $this->assign('page', count($this->_tpl_vars['pagelist']['pagelength'])); ?>
			<?php $_from = $this->_tpl_vars['pagelist']['pagelength']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['data']):
?>
				<div id=<?php echo $this->_tpl_vars['key']; ?>
 <?php if ($this->_tpl_vars['key'] == 0): ?><?php else: ?>style="display:none"<?php endif; ?>>
				<?php if ($this->_tpl_vars['key'] > 0 && $this->_tpl_vars['page'] > 10): ?>&nbsp;<a href="javascript:void(0);" onclick="backpage(<?php echo $this->_tpl_vars['key']; ?>
)"> << </a><?php endif; ?>
				<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
					<a href="javascript:void(0);"				onclick="doajaxAction('<?php echo $this->_tpl_vars['pagelist']['action']; ?>
/page/<?php echo $this->_tpl_vars['item']; ?>
',0,'page')"><?php echo $this->_tpl_vars['item']; ?>
</a>&nbsp;
				<?php endforeach; endif; unset($_from); ?>
				<?php if ($this->_tpl_vars['page'] > 10): ?>
				&nbsp;<a href="javascript:void(0);" onclick="forwardpage(<?php echo $this->_tpl_vars['key']; ?>
)"> >> </a>
				<?php endif; ?>
				</div>
				
			<?php endforeach; endif; unset($_from); ?>
			</td>
		</tr>
	</table>
</div>
<div class="white"></div>
<div id="page">
<table border="0" width="100%">
<?php $_from = $this->_tpl_vars['organisms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['organism']):
?>		
         <tr class=<?php echo smarty_function_cycle(array('values' => "blue,notify"), $this);?>
>
            <td width="10%" align="center">   
				<img  onclick="PopEx(this, null, null, null, 300, 50, 'PopBoxImageLarge');" pbCaption="<i><?php echo $this->_tpl_vars['organism']['scientific_name']; ?>
</i>, <?php echo $this->_tpl_vars['organism']['name']; ?>
" id="trade<?php echo $this->_tpl_vars['key']; ?>
" width="98" src="/app/default/www/images/thumbs/<?php echo $this->_tpl_vars['organism']['image']; ?>
.jpg" pbsrc="/app/default/www/images/thumbs/<?php echo $this->_tpl_vars['organism']['image']; ?>
.jpg" class="PopBoxImageSmall" title="Click to magnify/shrink">
			
			</td>
			<td width="50%">
				MOID : <?php echo $this->_tpl_vars['organism']['moid']; ?>
 <br>
				<i><?php echo $this->_tpl_vars['organism']['scientific_name']; ?>
</i><br><?php echo $this->_tpl_vars['organism']['name']; ?>

			</td>
			<td>
				<table align="right" border="0" width="100%">
				<?php $_from = $this->_tpl_vars['organism']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['detailkey'] => $this->_tpl_vars['item']):
?>
					<?php $this->assign('size_age', ((is_array($_tmp=' ')) ? $this->_run_mod_handler('explode', true, $_tmp, $this->_tpl_vars['item']['size']) : explode($_tmp, $this->_tpl_vars['item']['size']))); ?>
					<tr>
						<?php if ($this->_tpl_vars['item']['gender_code'] == ""): ?>
							<td width="35%" nowrap>Size : <?php echo $this->_tpl_vars['item']['size']; ?>
</td>
						<?php else: ?>
							<td width="35%" nowrap>Size : <?php echo $this->_tpl_vars['item']['size']; ?>
(<?php echo $this->_tpl_vars['item']['gender_code']; ?>
) </td>
						<?php endif; ?>
						<td width="35%" nowrap>Price : <?php echo $this->_tpl_vars['item']['currency_mark']; ?>
 <?php echo $this->_tpl_vars['item']['stock_amount']; ?>
</td>
						<td width="30%" class="cart" align="center"><a href="javascript:void(0);" onclick="doajaxAction('/account/selectSupplier/key/<?php echo $this->_tpl_vars['item']['organism_id']; ?>
/country_code/<?php echo $this->_tpl_vars['country_code']; ?>
/organism_id/<?php echo $this->_tpl_vars['item']['organism_id']; ?>
/gender/<?php echo $this->_tpl_vars['item']['gender_code']; ?>
/size/<?php echo $this->_tpl_vars['item']['size_code']; ?>
/special_order/<?php echo $this->_tpl_vars['specialorder']; ?>
/amount/<?php echo $this->_tpl_vars['item']['stock_amount']; ?>
/currency/<?php echo $this->_tpl_vars['item']['currency_mark']; ?>
',0,'supplier');popup('supplier');"> Add to Cart</a></td>
					</tr>
					<?php endforeach; endif; unset($_from); ?>							 
				</table>			
         </tr>   
 		<?php $this->assign('tmporgid', ($this->_tpl_vars['organism']['orgnism_id'])); ?>	
<?php endforeach; endif; unset($_from); ?>

</div> 
<?php else: ?>
		<tr height="10"><td></td></tr>
		<tr>
			<td align="center"><h1>No Fish Available</h1></td>
		</tr>
<?php endif; ?>
</table>
</div>
